import request from '../http.js'

const api = {
	'pageList': '/work/planSummary/pageList'		,// 获取工作列表
	'save': '/work/planSummary/save'	,// 保存
	'delete': '/work/planSummary/delete',		// 删除
	'approval': '/work/planSummary/approval',	// 驳回
	'returnPlan' : "/work/planSummary/returnPlan", 	// 撤回
	'finish': '/work/planSummary/finish',		// 存档
	'worksubmit': '/work/planSummary/submit',	// 报送/提交
	'getOfficeTreeDataList': '/system/office/getOfficeTreeDataList',		// 报送人列表
}

//报送人列表
export function getOfficeTreeDataList(data){ 
	return request({
		url: api.getOfficeTreeDataList,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}


//报送/提交
export function worksubmit(data){ 
	return request({
		url: api.worksubmit,
		method: 'POST',
		contentType:'application/json',
		data:data
	})
}


//存档
export function finish(data){ 
	return request({
		url: api.finish,
		method: 'POST',
		contentType:'application/json',
		data:data
	})
}


//撤回
export function returnPlan(data){ 
	return request({
		url: api.returnPlan,
		method: 'POST',
		contentType:'application/json',
		data:data
	})
}

//驳回
export function approval(data){ 
	return request({
		url: api.approval,
		method: 'POST',
		contentType:'application/json',
		data:data
	})
}


//删除
export function deletes(data){ 
	return request({
		url: api.delete,
		method: 'POST',
		contentType:'application/json',
		data:data
	})
}

//保存
export function save(data){ 
	return request({
		url: api.save,
		method: 'POST',
		contentType:'application/json',
		data:data
	})
}

//商机删除
export function pageList(data){ 
	return request({
		url: api.pageList,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}










